Exit

Exits the Do, While, For, Select, Function, and Sub statements. After exiting the statement, playback continues with the next statement.

Syntax

Exit Do

Exit While

Exit For

Exit Select

Exit Function

Exit Sub

Example

For counter = 1 To 100

If counter >= 20 Then

PrintLn("Counter reached 20 and will exit")

Exit For

End If

PrintLn("Counter is: " + counter)

Next